const products=require("../database/products")
const images=require("../database/images")

module.exports=async (req,res)=>{
  const {series}=req.query
  const data1=await products.find( {series} )
  const data2=await images.find({proID:data1[0].proID})
  res.send({
    data1,data2
  })
}